ckeditor browse and upload image error #351
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello ..
i upgrade redmine 5.0 and installed plugin redmin_ckeditor 1.2.4
it works well , but click and error 'browse and upload images icon' when i tried upload images ..
please check this ...
I, [2022-10-30T07:28:23.424614 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Started GET "/rich/files/?CKEditor=project_description&CKEditorFuncNum=2&default_style=original&allowed_styles=thumb%2Crich_thumb%2Coriginal&insert_many=false&type=image&scoped=true&scope_type=Project&scope_id=277&viewMode=grid" for 192.168.219.1 at 2022-10-30 07:28:23 +0000
I, [2022-10-30T07:28:23.428100 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Processing by Rich::FilesController#index as HTML
I, [2022-10-30T07:28:23.428350 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Parameters: {"CKEditor"=>"project_description", "CKEditorFuncNum"=>"2", "default_style"=>"original", "allowed_styles"=>"thumb,rich_thumb,original", "insert_many"=>"false", "type"=>"image", "scoped"=>"true", "scope_type"=>"Project", "scope_id"=>"277", "viewMode"=>"grid"}
I, [2022-10-30T07:28:23.477959 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Current user: choiss (id=3)
I, [2022-10-30T07:28:23.495447 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Rendered /opt/bitnami/ruby/lib/ruby/gems/3.0.0/bundler/gems/rich-331110a2a539/app/views/rich/files/index.html.erb within layouts/rich/application (Duration: 12.6ms | Allocations: 2037)
I, [2022-10-30T07:28:23.495734 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Rendered layout plugins/redmine_ckeditor/app/views/layouts/rich/application.html.erb (Duration: 13.0ms | Allocations: 2063)
I, [2022-10-30T07:28:23.496290 #195725] INFO -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] Completed 500 Internal Server Error in 68ms (ActiveRecord: 40.4ms | Allocations: 4071)
F, [2022-10-30T07:28:23.499018 #195725] FATAL -- : [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f]
[0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] ActionView::Template::Error (undefined method
escape' for URI:Module): [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] 1: <li class="clickable"> [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] 2: <img id="file<%= file.id %>" [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] 3: src="<%= thumb_for_file(file) %>" [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] 4: data-uris="<%= file.uri_cache %>" [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] 5: data-relative-url-root="<%= Redmine::Utils.relative_url_root %>" [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] 6: data-rich-asset-id="<%= file.id %>" [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] [0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] plugins/redmine_ckeditor/lib/redmine_ckeditor/rich_files_helper_patch.rb:5:in
thumb_for_file'[0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] plugins/redmine_ckeditor/app/views/rich/files/_file.html.erb:3
[0e8a5a8a-2a54-40c6-a0b4-5372ac66701f] lib/redmine/sudo_mode.rb:61:in `sudo_mode'